package cn.net.xyan.easy.spring.jpa.test.dto;

import cn.net.xyan.easy.spring.jpa.annotation.QueryCondition;
import cn.net.xyan.easy.spring.jpa.annotation.ResultColumn;
import cn.net.xyan.easy.spring.jpa.test.entity.EntityAAA_;
import cn.net.xyan.easy.spring.jpa.test.entity.EntityAA_;
import cn.net.xyan.easy.spring.jpa.test.entity.EntityA_;
import cn.net.xyan.easy.spring.jpa.test.entity.EntityB_;

import javax.persistence.criteria.JoinType;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by zarra on 16/1/22.
 */
public class ResponseAAA {
    public String value;

    Long longValue;

    String stringValue;

    public ResponseAAA() {

    }

    //"entityAA.entityB.aList.value";
    @ResultColumn(value =
            EntityAAA_.entityAA_ + "."
                    + EntityAA_.entityB_ + "."
                    + EntityB_.aList_ + "."
                    + EntityA_.value_, joinType = JoinType.LEFT)
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @ResultColumn(value = EntityAAA_.longValue_)
    public Long getLongValue() {
        return longValue;
    }

    public void setLongValue(Long longValue) {
        this.longValue = longValue;
    }

    public String getStringValue() {
        return stringValue;
    }

    public void setStringValue(String stringValue) {
        this.stringValue = stringValue;
    }

}
